package com.lxujia.ruankao.model;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

import java.util.ArrayList;
import java.util.List;

// 真题类型
public class CategoryType extends LitePalSupport {
    private int id;//自增长 id
    @Column(unique = true)
    private String categoryType;//分类英语简称：（pm 等等）
    private String categoryName;//分类名称：（信息系统项目管理师.网络工程师.系统规划与管理师 等等）
    private List<CategoryItem> categoryItems = new ArrayList<CategoryItem>(); // 关系：对多

    public CategoryType() {
    }

    public CategoryType(String categoryType, String categoryName, List<CategoryItem> categoryItems) {
        this.categoryType = categoryType;
        this.categoryName = categoryName;
        this.categoryItems = categoryItems;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(String categoryType) {
        this.categoryType = categoryType;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public List<CategoryItem> getCategoryItems() {
        return categoryItems;
    }

    public void setCategoryItems(List<CategoryItem> categoryItems) {
        this.categoryItems = categoryItems;
    }

    @Override
    public String toString() {
        return "categoryType = " + this.categoryType + " ; categoryName = " + this.categoryName;
    }
}
